import query from '@dfeidao/atom-nodejs/db/query';
import { IncomingHttpHeaders } from 'http';
import { productid ,systemid} from '../../atom/config';
// 查询项目和驻场下拉框
interface Message {
	filter: {
		staff_no: string
	};
}
export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	const p = query(action_id, session_id, systemid);
		p.prepare('project_personnel', ['project_name', 'project_no','is_resident'], { productid,pub_user_no:message.filter.staff_no},100,1, [], []);
	const [dt] = await p.exec();
	return {dt};
}
